package com.ds.dsm.view.nav.service;

import com.ds.config.ResultModel;
import com.ds.dsm.view.config.nav.NavActionGroup;
import com.ds.enums.db.MethodChinaName;
import com.ds.esd.custom.api.annotation.APIEventAnnotation;
import com.ds.esd.custom.enums.CustomMenuItem;
import com.ds.esd.custom.module.annotation.DynLoadAnnotation;
import com.ds.esd.custom.module.annotation.ModuleAnnotation;
import com.ds.esd.custom.nav.tab.buttonviews.NavButtonViewsViewAnnotation;
import com.ds.esd.tool.ui.enums.Dock;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/dsm/view/config/navaction/")
public class ViewNavActionConfigService {

    @MethodChinaName(cname = "动作事件")
    @RequestMapping(method = RequestMethod.POST, value = "NavActionGroup")
    @NavButtonViewsViewAnnotation
    @DynLoadAnnotation
    @ModuleAnnotation(dock = Dock.fill, caption = "动作事件", imageClass = "spafont spa-icon-action")
    @APIEventAnnotation(bindMenu = CustomMenuItem.treeNodeEditor)
    @ResponseBody
    public ResultModel<NavActionGroup> getNavActionGroup(String sourceClassName, String methodName, String domainId, String viewInstId) {
        ResultModel<NavActionGroup> result = new ResultModel<NavActionGroup>();
        return result;

    }

}
